import { Injectable } from '@nestjs/common';
import pinyin from 'pinyin';

@Injectable()
export class PinyinService {
  transform(text: string): string[][] {
    return pinyin(text);
  }
}
